/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.Set;
import play.db.jpa.*;
import javax.persistence.*;

/**
 *
 * @author Zlobniy
 */
@Entity
@Table(name="company")
public class Company extends Model{
    
    @ManyToMany(cascade=CascadeType.PERSIST)
    private Set<User> users;
    
    @ManyToMany(cascade=CascadeType.PERSIST)
    private Set<City> cityList;
    
    @ManyToMany(cascade=CascadeType.PERSIST)
    private Set<Activities> activitiesList;
    
    private String name;
    private String email;
    private String phone;
    private String address;
    private String webSite;
    private String linkOnMap;
    
    public String info;
    
    public Company(String name, String email, String phone, String address, String webSite, String linkOnMap, String info){
        this.name = name;
        this.email = email;
        this.phone = phone;
        this.address = address;
        this.webSite = webSite;
        this.linkOnMap = linkOnMap;
    }

    public Set<Activities> getActivitiesList() {
        return activitiesList;
    }

    public void setActivitiesList(Set<Activities> activitiesList) {
        this.activitiesList = activitiesList;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Set<City> getCityList() {
        return cityList;
    }

    public void setCityList(Set<City> cityList) {
        this.cityList = cityList;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getLinkOnMap() {
        return linkOnMap;
    }

    public void setLinkOnMap(String linkOnMap) {
        this.linkOnMap = linkOnMap;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Set<User> getUsers() {
        return users;
    }

    public void setUsers(Set<User> users) {
        this.users = users;
    }

    public String getWebSite() {
        return webSite;
    }

    public void setWebSite(String webSite) {
        this.webSite = webSite;
    }
    
}
